<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<fieldset>
  <s:form action="employee!add" method="post" style="width: 240px">
    <legend>添加员工</legend>
    <s:textfield label="员工姓名" name="employee.employeeName" title="不超过20个字符" />
    <s:select label="性别" name="employee.sex" list="#{1:'男',0:'女'}" />
    <s:textfield label="员工电话" name="employee.telephone" />
    <s:select label="部门id" name="employee.departmentId" list="departments" listKey="departmentId"
      listValue="departmentName" />
    <s:submit value="添加" />
  </s:form>
</fieldset>
